package com.youfan.service;

import com.github.pagehelper.PageInfo;
import com.youfan.dto.JobAndTriggerDto;
import com.youfan.dto.JobAndTriggerDto2;
import org.quartz.SchedulerException;

import java.util.List;

/**
 */
public interface QuartzService {

    PageInfo<JobAndTriggerDto> getJobAndTriggerDetails(Integer pageNum, Integer pageSize);

    public List<JobAndTriggerDto2> getJobAndTriggerDetails2();

    void addjob(String jName, String jGroup, String tName, String tGroup, String cron,String jobClassName);

    void pausejob(String jName, String jGroupe) throws SchedulerException;

    void resumejob(String jName, String jGroup) throws SchedulerException;

    void rescheduleJob(String jName, String jGroup, String cron) throws SchedulerException;

    void deletejob(String jName, String jGroup) throws SchedulerException;
}
